Telegram Group & Telegram Channel
دریافت اطلاعات شاخص کل و مقایسه همبستگی شاخص کل با نماد شستا (مثال)
در مثال این پست که بر اساس ماژول tsemodule5 نوشته شده است، اطلاعات شاخص و نماد شستا برای 50 روز اخیر دریافت و رسم می شود و همبستگی میان آنها نمایش داده می شود.

import tsemodule5 as tm5
import matplotlib.pyplot as plt
import pandas as pd
plt.style.use("ggplot")
tehranindex=tm5.index(value=50,progress=False)
shasta = tm5.stock("شستا",value=50,progress=False,standard=True,newfile=True)
df=pd.DataFrame({"tehranindex":tehranindex["Close"],"shasta":shasta["Close"]},index=tehranindex.index)
df["tehranindex"].plot(figsize=(15,6),label="Tehran Index")
df["shasta"].plot(secondary_y=True,label="Shasta Stock")
print("Correlation is:",round(df.corr().iloc[0,1],2)*100,"%")
plt.legend()
plt.show()


#tsemodule



tg-me.com/python_for_student/557
Create:
Last Update:

دریافت اطلاعات شاخص کل و مقایسه همبستگی شاخص کل با نماد شستا (مثال)
در مثال این پست که بر اساس ماژول tsemodule5 نوشته شده است، اطلاعات شاخص و نماد شستا برای 50 روز اخیر دریافت و رسم می شود و همبستگی میان آنها نمایش داده می شود.

import tsemodule5 as tm5
import matplotlib.pyplot as plt
import pandas as pd
plt.style.use("ggplot")
tehranindex=tm5.index(value=50,progress=False)
shasta = tm5.stock("شستا",value=50,progress=False,standard=True,newfile=True)
df=pd.DataFrame({"tehranindex":tehranindex["Close"],"shasta":shasta["Close"]},index=tehranindex.index)
df["tehranindex"].plot(figsize=(15,6),label="Tehran Index")
df["shasta"].plot(secondary_y=True,label="Shasta Stock")
print("Correlation is:",round(df.corr().iloc[0,1],2)*100,"%")
plt.legend()
plt.show()


#tsemodule

BY پایتون به زبان ساده


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_for_student/557

View MORE
Open in Telegram


پایتون به زبان ساده Telegram | DID YOU KNOW?

Date: |

Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.

That growth environment will include rising inflation and interest rates. Those upward shifts naturally accompany healthy growth periods as the demand for resources, products and services rise. Importantly, the Federal Reserve has laid out the rationale for not interfering with that natural growth transition.It's not exactly a fad, but there is a widespread willingness to pay up for a growth story. Classic fundamental analysis takes a back seat. Even negative earnings are ignored. In fact, positive earnings seem to be a limiting measure, producing the question, "Is that all you've got?" The preference is a vision of untold riches when the exciting story plays out as expected.

پایتون به زبان ساده from br


Telegram پایتون به زبان ساده
FROM USA